package ooad.gof.singleton;
public class Client {
	public static void main(String[] args) {
		Singleton s1 = Singleton.getInstance();
		Singleton s2 = Singleton.getInstance();
		System.out.println(s1 == s2);
		DoubleLockSingleton dls1 = DoubleLockSingleton.getInstance();
		DoubleLockSingleton dls2 = DoubleLockSingleton.getInstance();
		System.out.println(dls1 ==dls2);
	}
}
